﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.Entity.Entity.JJFlow;

namespace Jinjia.Approve.IRepository.JJFlow
{
    public interface IFlowNodeReferenceRepository
    {
        Task<int> Save(jj_node_reference data);
        
        Task Save(List<jj_node_reference> data);

        /// <summary>
        /// 获取预测轨迹
        /// </summary>
        /// <param name="flow_instance_id"></param>
        /// <returns></returns>
        Task<List<jj_node_reference>> GetReferences(int flow_instance_id);

        Task<jj_node_reference> GetNodeByInstanceIdAndNodeId(int instance_id, int node_id);
    }
}